
package de.unihannover.se.restlab.microblog.models;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "microblog")
@XmlAccessorType(XmlAccessType.FIELD)
public class Microblog {
	@XmlElementRef
	private Link messages;
	@XmlElementRef
	private Link users;
	@XmlElementRef
	private Link accounts;

	public Microblog () {
	}

	public Microblog (Link messages, Link users, Link accounts) {
		super();
		this.messages = messages;
		this.users = users;
		this.accounts = accounts;
	}

	public Link getAccounts () {
		return accounts;
	}

	public void setAccounts (Link accounts) {
		this.accounts = accounts;
	}

	public Link getMessages () {
		return messages;
	}

	public void setMessages (Link messages) {
		this.messages = messages;
	}

	public Link getUsers () {
		return users;
	}

	public void setUsers (Link users) {
		this.users = users;
	}

	@Override
	public String toString () {
		return "Microblog [messages=" + messages + ", users=" + users + "]";
	}

}
